package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface PermissionMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Permission record);

    //Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    void updateByPrimaryKey(Permission record);

    int queryForCount(QueryObject qo);

    List<Permission> queryForList(QueryObject qo);



    List<Permission> queryPermissionByRoleId(Long roleId);


    List<String> queryPermissionResourceByEmpId(Long id);
}